package com.example.function;

import com.googlecode.aviator.runtime.type.AviatorBoolean;
import com.googlecode.aviator.runtime.type.AviatorObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class SpringFunction2 extends AviatorFunction {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public AviatorObject call(Map<String, Object> env) {
        logger.info("SpringFunction2 SpringFunction2 SpringFunction2" + env.get("user").toString());
        return AviatorBoolean.TRUE;
    }
}